<template>
  <el-dialog title="制单中心" :visible.sync="showMake" @close="cancel" width="70%" append-to-body>
    <div class="handle-content">
      <el-card class="box-card" style="margin-bottom: 10px">
        <div slot="header">
          <span>
            <el-link type="primary" :underline="false">深圳完工单</el-link>
            &nbsp;&nbsp;<el-link type="info" :underline="false">生成</el-link>&nbsp;&nbsp;
            <el-link type="success" :underline="false">天津完工单</el-link>
          </span>
        </div>
        <SzToTjWgd></SzToTjWgd>
      </el-card>
      <el-card class="box-card" style="margin-bottom: 10px">
        <div slot="header">
          <span><el-link type="info" :underline="false">天津报价单清洗为深圳111导入格式</el-link></span>
        </div>
        <bjdClear></bjdClear>
      </el-card>
    </div>
  </el-dialog>
</template>

<script>
import SzToTjWgd from '@/views/gd/ywdwgd/clearTemplate/SzToTjWgd.vue'
import bjdClear from '@/views/gd/ywdwgd/clearTemplate/bjdClear.vue'
export default {
  name: 'makeCenter',
  components: { SzToTjWgd, bjdClear },
  props: {
    showMake: {
      type: Boolean
    }
  },
  data() {
    return {
      // src: this.uploadSrc + '/gd/fj/file/batchUpload',
      // uploadHeaders: { 'Authorization': 'Bearer ' + getToken() }, // 如果需要CSRF保护的话
      // fjList: [],
      // tjForm: {},
      // buttonLoading: false,
      // rulesTj: {
      //   wgrq: [
      //     { required: true, message: "请选择完工日期", trigger: "blur" }
      //   ],
      //   tjFjId: [
      //     { required: true, message: "请上传附件", trigger: "blur" }
      //   ]
      // }
    }
  },
  created() {
    // this.$set(this.tjForm, 'wgrq', this.formatDate(new Date()))
    // this.$set(this, 'fjList', [])
  },
  methods: {
    // 处理生成深圳完工单
    cancel() {
      this.tjForm = {}
      this.$emit("closeMake")
    }
  }
}
</script>

<style scoped>
.handle-content {
  width: 100%;
  height: 600px;
}
</style>
